<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						
							<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>发购物卷活动：</label>
								<div class="col-sm-8">
									<input id="title" name="title" class="form-control" type="text" required="required">
								</div>
							</div>
							
						<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>发购物卷开始时间：</label>
								<div class="col-sm-8">
								<input type='text' class="Wdate form-control" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" name='startdate' required="required"/>
								</div>
							</div>
							
							<div class="form-group">	
								<label class="col-sm-3 control-label">开启状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input id="status" name="status" type="radio" value="1" checked="checked">暂不开启</label>
									<label class="radio-inline"><input id="status" name="status" type="radio" value="2">开启</label>
									<label class="radio-inline">备注：（开启后其他活动的购物卷将不能在领取）</label>
								</div>
							</div>
							<div class="cl">
	                                <span class="btn  fileinput-button">
							            <span><a href='javascript:;' class='deleteProductImage' onclick='addclum();'>添加购物卷</a></span>
							        </span>
	                            </div>
								   <div style="overflow-x: auto">
	                                <table class="table users table-bordered table-condensed dataTables-example dataTable">
	                                    <thead>
	                                        <tr class="text-c">
	                                        	<th width="20">购买金额</th>
	                                            <th width="150">购物卷金额</th>
	                                            <th width="150">失效日期</th>
	                                            <th width="60">删除行</th>
	                                        </tr>
	                                    </thead>
	                                    <tbody id="attachmentTbody">
	                                    	<tr class="details">
	                                    		 <td><input type="number" class='form-control' name='attachs_money'/></td>
										        <td><input type='number' class='form-control' name='attachs_sendmoney'/></td>
										        <td><input type='text' class="Wdate form-control" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" name='attachs_enddate'/></td> 
										   		<td><a href='javascript:;' class='deleteProductImage' onclick='removeAttach(this);'>删除行</a></td>  
										    </tr>
	                                    </tbody>
	                                </table>
	                            </div>
							
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/volumeActivity/add.js">
	</script>
</body>
</html>
